/*
 * Copyright © 2023
 * @Author: zhangxiang
 * @Date: 2023-06-05 09:43:54
 * @LastEditors: zhangxiang
 * @LastEditTime: 2023-07-25 17:15:40
 * @Description:
 *
 */
import request from '@/utils/request'

/**
 * @description: 获取模板列表
 * @param {*} data
 * @return {*}
 */
export function getTemplateList(data) {
  return request({
    url: '/api/orchestrate/template/list',
    method: 'post',
    data
  })
}

/**
 * @description: 创建资源模板
 * @param {*} data
 * @return {*}
 */
export function createOrchestrateTemplate(data) {
  return request({
    url: '/api/orchestrate/template/create',
    method: 'post',
    data
  })
}

/**
 * @description: 更新资源模板
 * @param {*} data
 * @return {*}
 */
export function updateOrchestrateTemplate(data) {
  return request({
    url: '/api/orchestrate/template/update',
    method: 'post',
    data
  })
}

/**
 * @description: 资源模板详情
 * @param {*} data
 * @return {*}
 */
export function detailOrchestrateTemplate(data) {
  return request({
    url: '/api/orchestrate/template/detail',
    method: 'post',
    data
  })
}

/**
 * @description: 一键编排
 * @param {*} data
 * @return {*}
 */
export function orderOrchestrate(data) {
  return request({
    url: '/api/orchestrate/order',
    method: 'post',
    data
  })
}

/**
 * @description: 获取编排列表
 * @param {*} data
 * @return {*}
 */
export function getOrchestrateList(data) {
  return request({
    url: '/api/orchestrate/list',
    method: 'post',
    data
  })
}
/**
 * @description: 删除模板
 * @param {*} data
 * @return {*}
 */
export function delTemplate(data) {
  return request({
    url: '/api/orchestrate/template/delete',
    method: 'post',
    data
  })
}
/**
 * @description: 删除资源列表
 * @param {*} data
 * @return {*}
 */
export function delOrchestrate(data) {
  return request({
    url: '/api/orchestrate/delete',
    method: 'post',
    data
  })
}
/**
 * @description: 编排详情
 * @param {*} data
 * @return {*}
 */
export function detailOrchestrate(data) {
  return request({
    url: '/api/orchestrate/detail/list',
    method: 'post',
    data
  })
}
